import { Component, createElement, STATE, ATTRIBUTE } from '../../utils/framework.js'
import { enableGesture } from '../../utils/gesture.js'

export { STATE, ATTRIBUTE } from '../../utils/framework.js'


export class Button extends Component {
  constructor() {
    super();
  }

  render() {
    this.childContainer = <span />;
    this.root = (<div>{ this.childContainer }</div>).render();
    return this.root;
  }

  appendChild(child) {
    if (!this.childContainer)
      this.render();
    this.childContainer.appendChild(child);
  }
}
